<!-- feedback msg -->
<div data-role="page" id="feedbackPopup" class="myPopup ui-corner-all">
    <script>
        $("#feedbackPopup").bind('pagebeforeshow', function(){
            console.log("feedbackPopup pagebeforeshow: backTo = "+ sessionStorage.backTo);
        
            var f = sessionStorage.feedback;
            sessionStorage.feedback = null;
            
            $("#FPmsg").html(f);
            
            var bT = sessionStorage.backTo;
            sessionStorage.backTo = null;
            
            console.log("bT = "+bT);
            
            if (bT != null && bT != "null"){
                $("#feedPBack").attr("href", bT);
                console.log("setting backTo to "+bT);
            }
        });   
    </script>
    <div data-role="content" data-theme="d" style="padding:15px;">
        <p id="FPmsg"></p>
    </div>
    <div data-role="footer"  data-theme="d">
        <a id="feedPBack" href="../photoView.html" data-role="button">Ok</a>
    </div>
</div>
<!-- feedback -->